@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './common.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}


// 2025-01-18   ****** global css
.apcontainer {
    padding: 20px;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.width-fit-content {
    width: fit-content;
}

.flex-sb {
    justify-content: space-between;
}

.flex-ver-end {
    align-items: flex-end;
}

.flex-ver {
    align-items: center;
}

.flex-end {
    justify-content: flex-end;
}

.flex-c {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-dc {
    flex-direction: column;
}

.relative {
    position: relative;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.fwb {
    font-weight: bold;
}

.d-block {
    display: block;
}

.flex-sa {
    justify-content: space-around;
}

.rounded-0 {
    border-radius: 0 !important;
}

.flex-1 {
    flex: 1;
}

.lh-1 {
    & > .el-form-item__label {
        line-height: 1;
    }
}

.lh1 {
    line-height: 1;
}

.lh14 {
    line-height: 1.4;
}

.ac {
    text-align: center;
}

.ar {
    text-align: right;
}

.al {
    text-align: left;

    .el-form-item__label {
        text-align: left;
    }
}


/**********/
aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.top-right-btn {
    position: relative;
    float: right;
}


//input readonly 去掉默认边框
.border-0 > .el-input__inner {
    border: 0;
}

.h-100 {
    height: 100%;
}

.mt-4 {
    margin-top: 4px;
}

.mt-6 {
    margin-top: 6px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-0 {
    margin-bottom: 0px !important;
}

.mb-4 {
    margin-bottom: 4px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-14 {
    margin-bottom: 14px !important;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-22 {
    margin-bottom: 22px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-26 {
    margin-bottom: 26px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-11 {
    margin-left: 11px;
}

.ml-12 {
    margin-left: 12px;
}

.ml-18 {
    margin-left: 18px;
}

.ml-20 {
    margin-left: 20px;
}

.ml-30 {
    margin-left: 30px;
}

.ml-40 {
    margin-left: 40px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-18 {
    margin-right: 18px;
}

.mr-20 {
    margin-right: 20px;
}

.mr-36 {
    margin-right: 36px;
}

.mr-40 {
    margin-right: 40px;
}

.calc-height {
    height: calc(100vh - 50px);
}

.fs12 {
    font-size: 12px;
}

.fs14 {
    font-size: 14px !important;
}

.fs16 {
    font-size: 16px !important;
}

.fs18 {
    font-size: 18px !important;
}

.fs20 {
    font-size: 20px !important;
}

.fs22 {
    font-size: 22px !important;
}

.fs24 {
    font-size: 24px !important;
}

.fs32 {
    font-size: 32px !important;
}

.ml10 {
    margin-left: 10px;
}

.ml20 {
    margin-left: 20px;
}

.ml40 {
    margin-left: 40px;
}

.mr10 {
    margin-right: 10px;
}

.ml20 {
    margin-left: 20px;
}

.ml27 {
    margin-left: 27px;
}

.ml32 {
    margin-left: 32px;
}

.ml37 {
    margin-left: 37px;
}

.ml50 {
    margin-left: 50px;
}

.m-10 {
    margin: 10px 0;
}

.m-15 {
    margin: 15px 0;
}

.pr-19 {
    padding-right: 19px;
}

.pr-20 {
    padding-right: 20px;
}

.pl-0 {
    padding-left: 0 !important;
}

.pl-4 {
    padding-left: 4px !important;
}

.pl-10 {
    padding-left: 10px;
}

.pl-12 {
    padding-left: 12px !important;
}

.pl-20 {
    padding-left: 20px;
}

.m-0 {
    margin: 0;
}

.w70 {
    width: 70px;
}

.w80 {
    width: 80px;
}


.w100 {
    width: 100px !important;
}

.w120 {
    width: 120px !important;
}

.w150 {
    width: 150px !important;
}

.w200 {
    width: 200px !important;
}

.w300 {
    width: 300px;
}

.w500 {
    width: 500px;
}

.w800 {
    width: 800px;
}

.color-success {
    color: #67C23A;
}

.color-white {
    color: #fff;
}

.color {
    color: #409EFF;
}

.custom-title-color {
    color: #51A9F8;
}

.legend {
    padding: 0 10px;
    color: #666;
}

.active-color {
    color: #FE382F;
}

.primary-color {
    color: #409eff;
    cursor: pointer;
}

.see-color {
    color: #0066CC;
    cursor: pointer;
}

.active-answer-color {
    color: #D56C25;
}

.download-a {
    height: 32px !important;
    line-height: 32px;
    background-color: #409EFF;
    border-radius: 3px;
    text-align: center;
    color: #fff;

    &:hover {
        color: #fff;
    }
}

.fieldset {
    border-color: #e6e6e6;
    margin-top: 20px;
    border-width: 1px 0 0;
}

.text-color {
    color: #666;
}

.explain-color {
    color: #999999;
}

.red {
    color: red;
}

.visited {
    color: #bcbcbc !important;
}

.href-color {
    color: #6699FF;
}

.app-container {
    padding: 20px;

}

.position-r {
    position: relative;
}

.app-container * {
    // font-size:12px;
    font-size: 14px;
}

.title-badge {
    font-size: 22px;
    padding: 5px;
    // background:#409EFF;
}

.mx-auto {
    margin: 0 auto;
}

.el-table__body-wrapper {
    overflow-y: auto;
}

.border-0 {
    border: 0;
}

.date-picker-witdh .el-form-item__content {
    width: 185px;
}


// 全局button样式修改
// .el-button{
//   border-radius: 0;
//   font-size: 12px;
//   background-color: #2878FF;
// }

.el-picker-panel__footer .el-button {
    font-size: 12px;
    border-radius: 3px;
    background-color: transparent;
}

.add-button {
    border-radius: 5px;
    min-width: 60px;
    height: 30px;
    padding: 0 16px;
}

.top-button {
    border-radius: 5px;
    width: 100px;
    height: 36px;
    padding: 0 16px;
}

.mini-button {
    border-radius: 5px;
    min-width: 40px;
    height: 26px;
    padding: 0 10px;
}


.bg-transparent {
    background-color: transparent;
}

.bg-gray {
    background: #F0F2F5;
}

.bg-white {
    background-color: #fff;
}

.operation-button {
    border-radius: 5px;
    width: 60px !important;
    height: 30px;
    padding: 0;
}

.del-button {
    border-radius: 5px;
    width: 60px !important;
    height: 26px;
    padding: 0;
    background: #F56C6C;
}

.success-button {
    border-radius: 5px;
    width: 60px !important;
    height: 26px;
    padding: 0;
    background: #67C23A;
}

.dialog-del-button {
    border-radius: 5px;
    background: #F56C6C;
    width: 80px;
    height: 30px;
    border-radius: 5px;
    padding: 0;
}

.border-radius-button {
    border-radius: 5px;
}

.border {
    border: 1px solid rgba(228, 228, 228, 1);
}

.border-top {
    border-top: 1px solid #e4e4e4;
}

.border-bottom {
    border-bottom: 1px solid #e4e4e4;
}

.submit-button {
    width: 80px !important;
    height: 32px;
    padding: 0;
}

.el-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    text-align: center;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background: rgb(48, 65, 86);
    border-radius: 20px;
}

.el-pager li {
    height: 20px;
    line-height: 20px;
}

.el-pagination.is-background .el-pager li {
    min-width: 20px;
    font-weight: 100;
}

// table header样式
.el-table {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.has-gutter .cell {
    font-size: 14px !important;
    font-weight: 100;
}


.dialog-button {
    width: 80px;
    height: 30px;
    border-radius: 5px;
    padding: 0;

    span {
        font-size: 14px !important;
    }
}

.cancel-button {
    background-color: #fff;
    border: 1px solid #DCDFE6;
    color: #606266;

    &:hover {
        background-color: #fff;
        border: 1px solid #DCDFE6;
        color: #000;
    }
}

.black {
    color: #000;
}

//confirm 弹框 按钮样式
.el-message-box__btns button {
    font-size: 14px;
    width: 80px;
    height: 30px;
    border-radius: 5px;
    padding: 0;
}


.el-message-box__btns button:first-child {
    background-color: #fff;

}

// dialog 样式
.dialog-header-bg .el-dialog__header {
    background: #304156;
    height: 50px;
    line-height: 58px;

    padding: 0;

    span {
        color: #fff;
        font-size: 20px !important;
    }
}

.dialog-padding {
    .el-dialog__body {
        padding: 25px 100px 30px;
    }
}


// 修改默认tab样式
// .el-tabs__item{
//   width:89px;
//   text-align: center;
// }


//修改默认tab的背景色
.el-tabs__nav {
    background-color: #fff;
}

.el-tabs__nav {
    background-color: #fff;
}

//详情页 底部固定区域 、
.bottom-public-group {
    padding-left: 100px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    left: 0;
    background: #f3f4f9;
    padding-right: 20px;
    padding: 10px 20px 10px 230px;
}

.text-overflow {
    overflow: hidden;
    /*超出部分隐藏*/
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
    white-space: nowrap;
    /*规定段落中的文本不进行换行 */
}


// auditList 全局二级dialog
.second-dialog {
    .el-dialog__header {
        padding: 0;
        position: relative;
        z-index: 10;
    }

    .el-dialog__body {
        padding: 0;
    }

    .el-tabs__nav {
        background: transparent;
    }

    .el-tabs__content {
        padding: 0;
    }

    .el-tabs--border-card > .el-tabs__header {
        border: 0;
    }
}


/* 宽度全局样式
------------------------------- */
@for $i from 50 through 100 {
    .width#{$i} {
        width: #{$i}px !important;
    }
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
    .fs#{$i} {
        font-size: #{$i}px !important;
    }
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 0 through 100 {
    .mt#{$i} {
        margin-top: #{$i}px !important;
    }
    .mr#{$i} {
        margin-right: #{$i}px !important;
    }
    .mb#{$i} {
        margin-bottom: #{$i}px !important;
    }
    .ml#{$i} {
        margin-left: #{$i}px !important;
    }
    .pt#{$i} {
        padding-top: #{$i}px !important;
    }
    .pr#{$i} {
        padding-right: #{$i}px !important;
    }
    .pb#{$i} {
        padding-bottom: #{$i}px !important;
    }
    .pl#{$i} {
        padding-left: #{$i}px !important;
    }
    .padding#{$i} {
        padding: #{$i}px !important;
    }
}
